import request from "@/utils/request";


export function findHospital(data){
    return request({
        url: '/hospital/hospitalRoom/list',
        method: 'get',
        data: data
    })
}
export function findHospitalById(hospitalId){
    return request({
        url: '/hospital/hospitalRoom/'+hospitalId,
        method: 'get'
    })
}
export function selectHospitalContactByHospitalId(hospitalId){
    return request({
        url: '/contact/contact/findHospitalId/'+hospitalId,
        method: 'get'
    })
}


// 根据医院查询对应的科室
export function findHospitalSelectDepartment(hospitalId){
    return request({
        url: '/departments/departments/findHospital/'+hospitalId,
        method: 'get'
    })
}

// 查询医院的详情
export function getById(hospitalId){
    return request({
        url: '/hospital/hospitalRoom/getById/'+hospitalId,
        method: 'get'
    })
}
